package com.baizhi.app.controller;


import com.baizhi.app.service.AppArticleService;
import com.baizhi.entity.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("app/article")
public class AppArticleController {

    @Autowired
    private AppArticleService articleService;

    @GetMapping("show")
    public List<Article> show(){
        return articleService.show();
    }
}
